# import os
#
# accounts = ['Lilia', 'Nina', 'Full Movie HD', 'Bakaya', 'DamStory', 'Anna', 'TerrorNocturno', 'ScreenLab', 'FlickWave',
#             'ReelTrek', 'ReelRush', 'FlickRealm', 'FlickCast', 'FlickXtra', 'FilmSpotter', 'ReelStar', 'MovieHaven',
#             'MovieVault', 'StreamPulse', 'ScreenJet', 'CineStream', 'CineFlick', 'MovieHive', 'CineVault', 'FilmVerse',
#             'PrimeReel']
#
# for account in accounts:
#     os.makedirs(os.path.join('频道总目录', account), exist_ok=True)
#     tag = "shorts"
#     with open(os.path.join('频道总目录', account, 'tags.txt'), "w", encoding="utf-8") as f:
#         f.write(tag)

import os

# 定义文件路径，确保路径拼接正确
base_path = r'/频道总目录'  # 使用原始字符串或确保斜杠一致
file_name = 'config.txt'

# 使用 os.path.join() 拼接路径
file_path = os.path.join(base_path, file_name)

if os.path.exists(file_path):
    with open(file_path, 'r', encoding='utf-8') as f:
        data = f.read()
        print("文件读取成功")
else:
    print(f"文件路径无效: {file_path}")

